package com.example.imagehost.bean;

import org.springframework.stereotype.Component;

@Component
public class Image {
    private String name;
    private String type;
    private Integer size;

    public Integer getSize() {
        return size;
    }

    public String getName() {
        return name;
    }

    public String getType() {
        return type;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Image(){
        System.out.print("无参构造函数，image");
    }

    public Image(String name, String type, Integer size){
        this.name = name;
        this.type = type;
        this.size = size;
    }

    @Override
    public String toString(){
        return "Image | name: "+this.name+" type: "+this.type+" size: "+this.size;
    }
}
